<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>

        <link href="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/css/main.css" rel="stylesheet" type="text/css" />
        <!--<link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css' />-->

        <?php
//        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery-1.4.4.js");
        Yii::app()->clientScript->registerCoreScript('jquery');
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/spinner/jquery.mousewheel.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/spinner/ui.spinner.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery-ui-1.8.11.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/fileManager/elfinder.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/wysiwyg/jquery.wysiwyg.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/wysiwyg/wysiwyg.image.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/wysiwyg/wysiwyg.link.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/wysiwyg/wysiwyg.table.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/flot/jquery.flot.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/flot/jquery.flot.pie.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/flot/excanvas.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/dataTables/jquery.dataTables.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/dataTables/colResizable.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/forms/forms.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/forms/autogrowtextarea.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/forms/autotab.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/forms/jquery.validationEngine-en.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/forms/jquery.validationEngine.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/colorPicker/colorpicker.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/uploader/plupload.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/uploader/plupload.html5.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/uploader/plupload.html4.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/uploader/jquery.plupload.queue.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/ui/progress.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/ui/jquery.jgrowl.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/ui/jquery.tipsy.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/ui/jquery.alerts.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jBreadCrumb.1.1.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/cal.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery.collapsible.min.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery.ToTop.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery.listnav.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/jquery.sourcerer.js");
        Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . "/views/layouts/js/custom.js");
        ?>
    </head>

    <body>

        <!-- Top navigation bar -->
        <div id="topNav">
            <div class="fixed">
                <div class="wrapper">
                    <div class="welcome"><a href="#" title=""><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/userPic.png" alt="" /></a><span>Welcome, <?php echo Yii::app()->user->name; ?></span></div>
                    <div class="userNav">
                        <ul>
                            <li><a href="#" title=""><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/icons/topnav/profile.png" alt="" /><span>Profile</span></a></li>
                            <li><a href="#" title=""><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/icons/topnav/tasks.png" alt="" /><span>Tasks</span></a></li>
                            <li class="dd"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/icons/topnav/messages.png" alt="" /><span>Messages</span><span class="numberTop">8</span>
                                <ul class="menu_body">
                                    <li><a href="#" title="">new message</a></li>
                                    <li><a href="#" title="">inbox</a></li>
                                    <li><a href="#" title="">outbox</a></li>
                                    <li><a href="#" title="">trash</a></li>
                                </ul>
                            </li>
                            <li><a href="#" title=""><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/icons/topnav/settings.png" alt="" /><span>Settings</span></a></li>
                            <li>
<!--                                <a href="login.html" title="">
                                    <img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/icons/topnav/logout.png" alt="" /><span>Logout</span>
                                </a>-->
                                <?php 
                                    $img = CHtml::image(Yii::app()->theme->baseUrl . '/views/layouts/images/icons/topnav/logout.png');
                                    echo CHtml::link( $img . '<span>Logout</span>', array("site/logout")); 
                                    ?>
                            </li>
                        </ul>
                    </div>
                    <div class="fix"></div>
                </div>
            </div>
        </div>

        <!-- Header -->
        <div id="header" class="wrapper">
            <div class="logo"><a href="/" title=""><img src="<?php echo Yii::app()->theme->baseUrl; ?>/views/layouts/images/loginLogo.png" alt="" /></a></div>
            <div class="middleNav">
                <ul>
                    <li class="iMes"><a href="#" title=""><span>Support tickets</span></a><span class="numberMiddle">9</span></li>
                    <li class="iStat">
                        <?php echo CHtml::link("<span>Statistics</span>", array('statistic/generalstatistic')); ?>
<!--                        <a href="#" title=""><span>Statistics</span></a>-->
                    </li>
                    <li class="iUser"><a href="#" title=""><span>User list</span></a></li>
                    <li class="iOrders"><a href="#" title=""><span>Billing panel</span></a></li>
                </ul>
            </div>
            <div class="fix"></div>
        </div>


        <!-- Content wrapper -->
        <div class="wrapper">

            <!-- Left navigation -->
            <div class="leftNav">
                <ul id="menu">
                    <li class="dash"><a href="index.html" title="" class="active"><span>Dashboard</span></a></li>
                    <li class="dash"><a href="#" title="" class="exp"><span>User</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add User", array("user/create")); ?></li>
                            <li><?php echo CHtml::link("User List", array("user/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>Article</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add Article", array("article/create")); ?></li>
                            <li><?php echo CHtml::link("Article List", array("article/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>Product</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add Product", array("product/create")); ?></li>
                            <li><?php echo CHtml::link("Product List", array("product/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>Message</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Send New Message", array("message/create")); ?></li>
                            <li><?php echo CHtml::link("Message List", array("message/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>User</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add User", array("user/create")); ?></li>
                            <li><?php echo CHtml::link("User List", array("user/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>User</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add User", array("user/create")); ?></li>
                            <li><?php echo CHtml::link("User List", array("user/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>User</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add User", array("user/create")); ?></li>
                            <li><?php echo CHtml::link("User List", array("user/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="dash"><a href="#" title="" class="exp"><span>User</span><span class="numberLeft">3</span></a>
                        <ul class="sub">
                            <li><?php echo CHtml::link("Add User", array("user/create")); ?></li>
                            <li><?php echo CHtml::link("User List", array("user/index")); ?></li>
                            <li class="last"><?php echo CHtml::link("Deleted List", array("#")); ?></li>
                        </ul>
                    </li>
                    <li class="files"><a href="file_manager.html" title=""><span>File manager</span></a></li>
                    <li class="errors"><a href="#" title="" class="exp"><span>Error pages</span><span class="numberLeft">6</span></a>
                        <ul class="sub">
                            <li><a href="403.html" title="">403 page</a></li>
                            <li><a href="404.html" title="">404 page</a></li>
                            <li><a href="405.html" title="">405 page</a></li>
                            <li><a href="500.html" title="">500 page</a></li>
                            <li><a href="503.html" title="">503 page</a></li>
                            <li class="last"><a href="offline.html" title="">Website is offline</a></li>
                        </ul>
                    </li>
                    <li class="pic"><a href="icons.html" title=""><span>Buttons and icons</span></a></li>
                    <li class="contacts"><a href="contacts.html" title=""><span>Organized contact list</span></a></li>
                </ul>
            </div>

            <!-- Content -->
            <div class="content">
                <div class="title">
                    <h5><?php echo CHtml::encode(Yii::app()->name); ?></h5>
                </div>
                <div class="widget first">
                    <div class="head">
                        <h5 class="iFrames">Main Content</h5>
                    </div>
                    <div class="body">
                        <?php echo $content; ?>
                    </div>

                </div>
            </div>
            <div class="fix"></div>
        </div>

        <!-- Footer -->
        <div id="footer">
            <div class="wrapper">
                <span>&copy; Copyright 2011. All rights reserved. It's Brain admin theme by <a href="#" title="">Eugene Kopyov</a></span>
            </div>
        </div>

    </body>
</html>
